package com.ctg.payroll2.service.payment.impl;

import java.sql.SQLException;
import java.util.List;

import com.ctg.payroll2.bean.po.PayClass;
import com.ctg.payroll2.bean.po.payment.PaySumClass;
import com.ctg.payroll2.dao.payment.PayClassDAO;
import com.ctg.payroll2.dao.payment.PaySumClassDao;
import com.ctg.payroll2.service.payment.PaySumClassService;

public class PaySumClassServiceImpl implements PaySumClassService{
	
	private PaySumClassDao paySumClassDao;
	
	private PayClassDAO payClassDao;
	
	public PayClassDAO getPayClassDao() {
		return payClassDao;
	}

	public void setPayClassDao(PayClassDAO payClassDao) {
		this.payClassDao = payClassDao;
	}

	public PaySumClassDao getPaySumClassDao() {
		return paySumClassDao;
	}

	public void setPaySumClassDao(PaySumClassDao paySumClassDao) {
		this.paySumClassDao = paySumClassDao;
	}

	public void insertPaySumClass(PaySumClass paySumClass)
			throws SQLException {
		// TODO Auto-generated method stub
		
			paySumClassDao.insertPaySumClass(paySumClass);
		
	}

	public List<PaySumClass> getMegerPayClassById(PaySumClass paySumClass) throws SQLException {
		// TODO Auto-generated method stub
		return paySumClassDao.getMegerPayClassById(paySumClass);
	}

	public List<PayClass> getNotExistInPaySumClassById(PayClass payClass) throws SQLException {
		// TODO Auto-generated method stub
		return payClassDao.getNotExistInPaySumClassById(payClass);
	}

	public void deletePaySumClass(PaySumClass paySumClass) throws SQLException {
		// TODO Auto-generated method stub
		paySumClassDao.deletePaySumClass(paySumClass);
	}
	
	
}
